home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / SASC_6.0_Disk_7.adf / Source_And_Examples / examples / reslib / test.c < prev   
Encoding:
C/C++ Source or Header  |  1992-07-30  |  651 b   |  36 lines

  1. #include "proto/exec.h"
  2. #include "proto/dos.h"
  3. #include "mylib_pragmas.h"
  4. #include <stdio.h>
  5.  
  6. char __stdiowin[] = "con:0/0/640/100/";
  7.  
  8.  
  9. struct Library *MyLibBase;
  10.  
  11. main()
  12. {
  13.         int ret;
  14.         
  15.         MyLibBase = OpenLibrary("mylib.library",0);
  16.  
  17.         if (MyLibBase)
  18.         {
  19.             printf("Library Opened Sucessfully.\n");
  20.             ret = test1();
  21.             
  22.             printf("test1 returned = %d\n", ret);
  23.             
  24.             test2(ret+1);
  25.             
  26.             printf("test1 returned = %d\n",test1());
  27.  
  28.             CloseLibrary(MyLibBase);
  29.  
  30.             printf("Library Closed.\n");
  31.  
  32.             Delay(200);
  33.         }
  34. }
  35.  
  36.